package com.fintech.common.entity;

import java.io.Serializable;

import com.fintech.common.enums.ReturnCode;

public class ResultData<T> implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 3420841250217318915L;
	
	private String resultCode=ReturnCode.success.getErrorCode();
	
	private String message;
	
	private T data;

	public String getResultCode() {
		return resultCode;
	}

	public void setResultCode(String resultCode) {
		this.resultCode = resultCode;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public T getData() {
		return data;
	}

	public void setData(T data) {
		this.data = data;
	}
	public void setErrorMessage(String errorMessage){
		this.resultCode = ReturnCode.fail.getErrorCode();
		this.message = errorMessage;
	}
}
